<meta charset = "utf-8"/>
<script>
 	var str=prompt("请输入字符串：");
 	var s = str.substring(0,1);
	document.write("首字母大写为："+s.toUpperCase());
</script>